<div class="box">
  <div class="box-header with-border">
    <h3 class="box-title">商品详情</h3>
    <div class="box-tools pull-right">
      <ob_link><a href="{:url('productEdit', array('id' => $info['id']))}" class="btn btn-primary btn-sm"><i class="fa fa-edit"></i> 编辑</a></ob_link>
      <button type="button" class="btn btn-default btn-sm" onclick="history.back()"><i class="fa fa-arrow-left"></i> 返回</button>
    </div>
  </div>
  <div class="box-body">
    <div class="row">
      <div class="col-md-6">
        <div class="form-group">
          <label>产品名称</label>
          <p class="form-control-static">{$info.name|default='--'}</p>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <label>产品分类</label>
          <p class="form-control-static">{$info.category_text|default='--'}</p>
        </div>
      </div>

      <div class="col-md-6">
        <div class="form-group">
          <label>当前价格</label>
          <p class="form-control-static">¥{$info.market_price|default='0.00'}</p>
        </div>
      </div>

      <!-- <div class="col-md-6">
        <div class="form-group">
          <label>昨日价格</label>
          <p class="form-control-static">¥{$info.yesterday_price|default='0.00'}</p>
        </div>
      </div> -->

      <div class="col-md-6">
        <div class="form-group">
          <label>批发价</label>
          <p class="form-control-static">¥{$info.wholesale_price|default='0.00'}</p>
        </div>
      </div>

      <div class="col-md-6">
        <div class="form-group">
          <label>指导价</label>
          <p class="form-control-static">¥{$info.guide_price|default='0.00'}</p>
        </div>
      </div>

      <!-- <div class="col-md-6">
        <div class="form-group">
          <label>品牌</label>
          <p class="form-control-static">{$info.brand|default='--'}</p>
        </div>
      </div>

      <div class="col-md-6">
        <div class="form-group">
          <label>规格</label>
          <p class="form-control-static">{$info.specification|default='--'}</p>
        </div>
      </div> -->

      <div class="col-md-6">
        <div class="form-group">
          <label>状态</label>
          <p class="form-control-static">{$info.status_text|default='--'}</p>
        </div>
      </div>

      <!-- <div class="col-md-6">
        <div class="form-group">
          <label>VIP专享</label>
          <p class="form-control-static">
            {if condition="$info.is_vip_only eq 1"}
              <span class="label label-warning">是</span>
            {else/}
              <span class="label label-default">否</span>
            {/if}
          </p>
        </div>
      </div> -->

      <div class="col-md-6">
        <div class="form-group">
          <label>排序</label>
          <p class="form-control-static">{$info.sort|default='0'}</p>
        </div>
      </div>

      <div class="col-md-12">
        <div class="form-group">
          <label>产品图片</label>
          <div>
            {notempty name="info.cover_image"}
              <img src="{$info.cover_image}" style="max-width: 200px; max-height: 200px; border: 1px solid #ddd; border-radius: 4px;" alt="产品图片">
            {else/}
              <p class="form-control-static">暂无图片</p>
            {/notempty}
          </div>
        </div>
      </div>

      <div class="col-md-12">
        <div class="form-group">
          <label>产品描述</label>
          <div class="well">
            {$info.description|default='暂无描述'|raw}
          </div>
        </div>
      </div>

      <div class="col-md-6">
        <div class="form-group">
          <label>创建时间</label>
          <p class="form-control-static">{$info.create_time|default='--'}</p>
        </div>
      </div>

      <div class="col-md-6">
        <div class="form-group">
          <label>更新时间</label>
          <p class="form-control-static">{$info.update_time|default='--'}</p>
        </div>
      </div>
    </div>
  </div>
</div>